package com.xu.service;


import com.github.pagehelper.PageInfo;
import com.xu.pojo.User;
import com.xu.pojo.UserExcel;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface UserService {
    User queryUserByID(int id);
    int updatePwd(int id,String pwd);
    int addUser(User user);
    int delteUser(int id);
    List<User> queryUserByRole(String roles);
    PageInfo<User> queryUserByRolePaging(String roles, int pageNum, int pageSize);
    int updateUser(User user);
    List<User>queryUserIf(String roles,String queryCondition,int collegeId);
    PageInfo<User>queryUserIfPaging(String roles,String queryCondition,int collegeId, int pageNum, int pageSize);
    String addMutiUser(MultipartFile file, String roles);
    int transferList(List<UserExcel> list, String roles);  //返回成功数量
    User trans(UserExcel userExcel, String roles);        //失败则返回null
}
